Skip to content

Conversation

@bigsir24
Copy link
Contributor

@bigsir24 bigsir24 commented Apr 12, 2025

Options Entrypoint 51bba4a

Since a GameSettings mixin is no longer needed to have Option instances properly registered, I propose adding an entrypoint so options are properly loaded without needing a mixin.

Usage:

public class ExampleMod implements OptionsInitEntrypoint {

    public static OptionBoolean exampleOption;

      . . .

    @Override
    public void initOptions(GameSettings gameSettings) {
        exampleOption = new OptionBoolean(gameSettings, "exampleOption", false);
    }
}

Fixes

  • 8e2c760 Removed unused imports and made mixin classes abstract
  • 06e200a Fixed PacketHandlerServerAccessor being registered as a common mixin (this would display a class load warning)

@MartinSVK12 MartinSVK12 merged commit 8b546da into Turnip-Labs:7.3 Apr 26, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants